package com.hnkywl.sts.entity.base;

import com.hnkywl.sts.entity.BaseEntity;
import com.hnkywl.sts.entity.jhgl.Xy;
import com.hnkywl.sts.entity.sys.Yg;
import org.hibernate.annotations.Where;

import javax.persistence.*;
import java.sql.Blob;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: jerry
 * Date: 13-4-3
 * Time: 上午9:39
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name="T_SYS_FJ")
@Where(clause = "deleted!='1'")
public class Fj extends BaseEntity {
    @Id
    @SequenceGenerator(name = "seqFj", allocationSize = 1, sequenceName = "SEQ_SYS_FJ")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqFj")
    private Long id;

    private String wjm;

    private String ccmc;

    private String wjlj;

    @Lob
    @Basic(fetch= FetchType.LAZY)
    @Column(name="wj")
    private Blob wj;

    @ManyToOne
    @JoinColumn(name="SCR_ID")
    private Yg scr;

    private Date scsj;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getWjm() {
        return wjm;
    }

    public void setWjm(String wjm) {
        this.wjm = wjm;
    }

    public String getCcmc() {
        return ccmc;
    }

    public void setCcmc(String ccmc) {
        this.ccmc = ccmc;
    }

    public String getWjlj() {
        return wjlj;
    }

    public void setWjlj(String wjlj) {
        this.wjlj = wjlj;
    }

    public Blob getWj() {
        return wj;
    }

    public void setWj(Blob wj) {
        this.wj = wj;
    }

    public Yg getScr() {
        return scr;
    }

    public void setScr(Yg scr) {
        this.scr = scr;
    }

    public Date getScsj() {
        return scsj;
    }

    public void setScsj(Date scsj) {
        this.scsj = scsj;
    }

}
